package com.ruoyi.fault.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修人员分配对象 fault_assign
 * 
 * @author silence
 * @date 2025-07-21
 */
public class FaultAssign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分配ID */
    private Long id;

    /** 故障处理ID */
    @Excel(name = "故障处理ID")
    private Long repairId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    private String userName;
    /** 分配类型(1-负责人,2-实施人) */
    @Excel(name = "分配类型(1-负责人,2-实施人)")
    private Long assignType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public String getUserName() {return userName; }
    public void setUserName(String userName) {this.userName = userName;}
    public void setAssignType(Long assignType) 
    {
        this.assignType = assignType;
    }

    public Long getAssignType() 
    {
        return assignType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("repairId", getRepairId())
            .append("userId", getUserId())
            .append("assignType", getAssignType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("userName", getUserName())
            .toString();
    }
}
